package com.itcast.service;

import com.github.pagehelper.Page;
import com.itcast.entity.PageResult;
import com.itcast.pojo.CheckGroup;
import com.itcast.pojo.Setmeal;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface SetmealService {


    public String upload(MultipartFile imgFile) throws IOException;

    public void add(Setmeal setmeal, Integer[] checkgroupIds);

    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    public Setmeal findById(Integer id);

    public List<Integer> findCheckGroupIdsBySetmealId(Integer id);

    public void edit(Setmeal setmeal, Integer[] checkGroupIds);

    public void deleteById(Integer id);

    public List<Setmeal> findAll();

    public Setmeal mFindById(int id);

    public List<Map<String,Object>> findSetmealCount();
}
